/**
 * Created by hjqi on 2016/2/5.
 */

var Base = require('./oauth_base');
var util = require('util');
var oauthConf = require('../config/config').oauth2;
module.exports = githubOauth2;
function githubOauth2() {
    /*this._opt = {
     "client_id":"e0f7b569294dec6fba4e",
     "secret":"3ed76a6b9fe1be2ab914c5ca38fda8180f1407ae",
     "baseurl":"https://github.com/",
     "authorize_url":"login/oauth/authorize",
     "token_url":"login/oauth/access_token",
     "callback_url":"http://test.168home.net:8899/github"
     }*/
    this._opt = oauthConf.github;
    Base.call(this);
}

util.inherits(githubOauth2,Base);